package com.tensquare.gathering.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.cache.annotation.EnableCaching;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Macross
 * @Type Gathering.java
 * @Desc 活动信息实体类
 * @date 2019/12/17 20:28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "tb_gathering")
@ApiModel(description = "活动信息实体类")
public class Gathering implements Serializable {

    @Id
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "活动名称")
    private String name;

    @ApiModelProperty(value = "大会简介")
    private String summary;

    @ApiModelProperty(value = "详细说明")
    private String detail;

    @ApiModelProperty(value = "主办方")
    private String sponsor;

    @ApiModelProperty(value = "活动图片")
    private String image;

    @Column(name = "starttime")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @Column(name = "endtime")
    @ApiModelProperty(value = "截止时间")
    private Date endTime;

    @ApiModelProperty(value = "举办地点")
    private String address;

    @Column(name = "enrolltime")
    @ApiModelProperty(value = "报名截止")
    private Date enrollTime;

    @ApiModelProperty(value = "是否可见")
    private String state;

    @ApiModelProperty(value = "城市")
    private String city;

}
